<?php

class SysVendTable extends Doctrine_Table
{


    

    public function getSysVendQuery(Doctrine_Query $query = null)
    {
        if(is_null($query)) {
            $query = $this->createQuery();
        }

        $query->addWhere("acct_set_id = ? ", sfContext::getInstance()->getUser()->getAttribute("acct_set"));

        return $query;
        
    }
    
}
